{include file=comm/head.html}
{include file=comm/top.html}
<div class="section">
    <div class="container">
        <div class="ct2 clearfix">
            {include file=comm/left.html}
            <div class="ct2-mn">
                {include file=comm/position.html}
                <div class="content-body">
                    {content:content}
                </div>
                {pboot:if('{content:scode}'==6)}
                <div class="map" id="allmap"></div>
                <script type="text/javascript" src="https://api.map.baidu.com/api?v=2.0&ak=OfldXkI591GW281wpaUBSHES"></script> 
                <script type="text/javascript">
                    var map = new BMap.Map("allmap");
                    map.centerAndZoom(new BMap.Point({label:zuobiao}), 18);
                    var marker1 = new BMap.Marker(new BMap.Point({label:zuobiao}));  // 创建标注
                    map.addOverlay(marker1);              // 将标注添加到地图中
                    //marker1.setAnimation(BMAP_ANIMATION_BOUNCE); //跳动的动画
                    //创建信息窗口
                    var infoWindow1 = new BMap.InfoWindow("<b style='color:#dd0000'>{pboot:companyname}</b><br>地址：{pboot:companyaddress}<br>电话：{pboot:companyphone}");
                    marker1.openInfoWindow(infoWindow1);
                    marker1.addEventListener("click", function(){this.openInfoWindow(infoWindow1);});
                    //向地图中添加缩放控件
                    var ctrl_nav = new BMap.NavigationControl({anchor:BMAP_ANCHOR_TOP_LEFT,type:BMAP_NAVIGATION_CONTROL_LARGE});
                    map.addControl(ctrl_nav);
                    //向地图中添加缩略图控件
                    var ctrl_ove = new BMap.OverviewMapControl({anchor:BMAP_ANCHOR_BOTTOM_RIGHT,isOpen:1});
                    map.addControl(ctrl_ove);
                    //向地图中添加比例尺控件
                    var ctrl_sca = new BMap.ScaleControl({anchor:BMAP_ANCHOR_BOTTOM_LEFT});
                    map.addControl(ctrl_sca);
                    map.enableDragging();//启用地图拖拽事件，默认启用(可不写)
                    map.enableScrollWheelZoom();//启用地图滚轮放大缩小
                    map.enableDoubleClickZoom();//启用鼠标双击放大，默认启用(可不写)
                    map.enableKeyboard();//启用键盘上下左右键移动地
                </script>
                {/pboot:if}
            </div>
        </div>
    </div>
</div>
{include file=comm/foot.html}